package com.langChain4j.conversation.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 消息请求参数VO
 *
 * @author linjun
 */
@Data
@ApiModel(description = "消息请求参数")
public class MessageRequest {

    @NotBlank(message = "会话ID不能为空")
    @ApiModelProperty(value = "会话ID", example = "session_001", required = true)
    private String sessionId;

    @NotBlank(message = "消息内容不能为空")
    @ApiModelProperty(value = "消息内容", example = "你好，请介绍一下你自己", required = true)
    private String messageContent;

    @NotBlank(message = "请选择要使用的模型")
    @ApiModelProperty(value = "模型编码", example = "qwen1.5-0.5b-chat", required = true)
    private String moduleCode;

    @ApiModelProperty(value = "模型名称")
    private String moduleName;

    @ApiModelProperty(value = "是否流式响应")
    private Boolean isStream = false;
}